package top.jiangqiang.crawler.core.http.entities;

import java.net.Proxy;

public record ProxyConfig(Proxy.Type type, String ip, Integer port, String username, String password) {
    public ProxyConfig {
    }

    public ProxyConfig(String ip, Integer port) {
        this(Proxy.Type.HTTP, ip, port, null, null);
    }

    public ProxyConfig(String ip, Integer port, String username, String password) {
        this(Proxy.Type.HTTP, ip, port, username, password);
    }
}